PeerWireProtocolPeer{ }
connect{
  io.netty.channel.Channel.connect
}
isConnected{
  io.netty.channel.Channel.isConnected
}
disconnect{
  io.netty.channel.Channel.disconnect
}
handshake{
  write(new HandshakeMessage(torrentHash,peerID));
}
requestBlock{
  write(new RequestMessage(pieceIndex,start,length));
}
cancelRequestedBlock{
  write(new CancelMessage(pieceIndex,start,length));
}
sendBlock{
  write(new BlockMessage(pieceIndex,start,data));
}
bitField{
  write(new BitFieldMessage(bitSet));
}
have{
  write(new HaveMessage(pieceIndex));
}
choke{
  write(new ChokeMessage());
}
unchoke{
  write(new UnchokeMessage());
}
interested{
  write(new InterestedMessage());
}
notInterested{
  write(new NotInterestedMessage());
}
port{
  write(new PortMessage(dhtPort));
}
keepAlive{
  write(new KeepAliveMessage());
}
write{
  io.netty.channel.Channel.write
}
getTorrentPeer{ }
setTorrentPeer{ }
getTorrent{
  return peer.getTorrent();
}
getStrategy{
  return peer.getTorrent().getStrategy();
}
